package com.wit.witmg.util;

/**
 * 枚举redis key
 */
public enum RedisKeys {


    token("token:","token"),
    accessToken("accessToken","accessToken"),
    userInfo("user:info:","名片详情"),
    addrList("addr:list:","我的通讯录列表"),
    addrInfo("addr:info:","我的通讯录详情"),
    tempType("temp:type","模板分类"),
    words("host_words","热词库")
    ;


    /**
     * 错误码
     */
    private String val;
    /**
     * 错误描述
     */
    private String msg;

    public String getVal() {
        return this.val;
    }


    public String getVal(Object key) {
        return this.val+key;
    }
    public String getMsg() {
        return this.msg;
    }

    /**
     * 构造函数
     *
     * @param msg
     */
    private RedisKeys(String val, String msg) {
        this.val = val;
        this.msg = msg;
    }
}
